package com.kkb.kkbauth.config;

import com.kkb.kkbcommon.config.BaseSwaggerConfig;
import com.kkb.kkbcommon.domain.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Swagger日志配置
 * @author syt
 */
@Configuration
@EnableSwagger2
public class Swagger2Config extends BaseSwaggerConfig {

    public static final String SWAGGER_SCAN_SECURITY_PACKAGE = "com.kkb.kkbauth.controller";
    public static final String SECURITY_VERSION = "1.0.0";

    /**
     * 自定义Swagger配置
     *
     * @return 对象
     */
    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage(SWAGGER_SCAN_SECURITY_PACKAGE)
                .title("权限管理接口")
                .description("权限管理相关接口文档")
                .version(SECURITY_VERSION)
                .build();
    }

}

